package com.top.vueservice.service.mongo;

import com.top.vueservice.entities.mongo.MyUser;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Optional;

public interface MyUserService {
    Page<MyUser> findByStrName (String strName, int page,int pageSize);
    public Optional<MyUser> findById(String id);
    public List<MyUser> findAll();
    public MyUser findByName(String strName);
    public void  insertUser(MyUser myUser);
}
